package com.wei.czz.common.vo.store.assign;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Submit;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-12-05 14:31:34
 * className: AssignVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class AssignVo extends BaseEntity {

    /**
     * 商店列表
     */
    @NotNull(message = "商店列表不能为空", groups = { Save.class, Submit.class })
    @Size(min = 1, message = "商店列表不能为空", groups = { Save.class, Submit.class })
    @Valid
    private List<AssignParamVo> storeVoList;

    /**
     * 审核员用户主键
     * 值为空时取操作用户
     */
    @NotNull(message = "审核员用户主键不能为空", groups = Submit.class)
    private Long userId;

    /**
     * 分单方式[0-认领 1-分单]
     * 程序内赋值
     */
    private Integer assignType;

}
